package com.yanqu.road.server.cmd.activity.newserverwelfare;

import com.yanqu.road.entity.activity.ActivityInfo;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.activity.NewServerWelfareProto;
import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.gameplayer.module.activity.newserverwelfare.NewServerWelfareModule;
import com.yanqu.road.server.manger.activity.ActivityMgr;
import com.yanqu.road.server.manger.activity.newserverwelfare.NewServerWelfareMgr;
import com.yanqu.road.server.protocol.GameErrorCode;
import com.yanqu.road.server.protocol.GameProtocol;
import io.netty.channel.ChannelHandlerContext;

import java.util.Map;

@Cmd(code = GameProtocol.S_SYNC_NEW_SERVER_WELFARE_DATA, desc = "同步新服福利数据")
public class SyncNewServerWelfareDataCmd extends AbstractCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
        NewServerWelfareModule newServerWelfareModule = player.getModule(NewServerWelfareModule.class);
        newServerWelfareModule.syncAllData();
    }

    @Override
    public void sendData(GamePlayer player) {

    }
}
